package org.openmore.platform.wechatOpen;

import me.chanjar.weixin.open.api.WxOpenService;
import me.chanjar.weixin.open.bean.result.WxOpenAuthorizerInfoResult;
import me.chanjar.weixin.open.bean.result.WxOpenQueryAuthResult;

import javax.servlet.http.HttpServletRequest;

public interface MyWxOpenService {

    WxOpenService getWxOpenService(String tenantId);

    String getPreAuthUrl(HttpServletRequest request, String tenantId);
    WxOpenQueryAuthResult jump(String tenantId, String authorizationCode);

    WxOpenAuthorizerInfoResult getAuthorizerInfo(String appId);

    Object receiveTick(String tenantId, String requestBody, String timestamp, String nonce, String signature,
                       String encType, String msgSignature);

    Object callback(String tenantId, String requestBody,
                    String signature, String timestamp,
                    String nonce, String openid,
                    String encType, String msgSignature);

}
